corelib: Fix stack preservation in open
fileman: Preserve currentDir trailing slash

Previously, the trailing slash was accidentally omitted, causing the
current directory to become "/etc" instead of "/etc/" (for example).
Then, subsequent commands would try to append things to this name.
Merge pull request #135 from KnightOS/fileman-crash

Fix fileman crash