Use PHP stat() instead of 474076936 4165 crw--w---- 1 firewing tty 268435457 0 "May 21 23:35:49 2014" "May 21 23:35:49 2014" "May 21 23:35:49 2014" "May 21 23:35:49 2014" 131072 0 0 (stdin) in shell for better compatibility with OS X, Windows
Use relative pathing to allow installation outside of /