If need be mate, disconnect the rear line that is causing problems at the master cylinder, and put a bolt and washer in, and try again, this will identify if the problem lies with the master cylinder or the wheel cylinder.
Have you had the drums off?