Store magic test. On MacOSX the temp dir in /var is symlinked into /private/var thus making this comparison fail. This is solved by using os.path.realpath to expand the tempdir into is's real directory.
Merge pull request #3648 from jenshnielsen/store_test

Fix store magic test 

On MacOSX the temp dir in /var is symlinked into /private/var thus making this comparison fail. This pull request fixes the issue by using os.path.realpath to expand the tempdir into the real directory.