Make file system access logic correctly working

Signed-off-by: Simon Busch <morphis@gravedo.de>