Added full file object to avoid mismatches of directory paths in different OS platforms